<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆成功</title>
<style type="text/css">
#apDiv1 {
	position: absolute;
	width: 307px;
	height: 115px;
	z-index: 1;
	left: 284px;
	top: 250px;
}
#apDiv3 {
	position: absolute;
	width: 307px;
	height: 115px;
	z-index: 1;
	left: 36px;
	top: 30px;
}
#apDiv1 #form1 p {
	font-family: "华文行楷";
}
#apDiv1 #form1 p {
	font-size: 24px;
}
#apDiv1 #form1 p {
	color: #F00;
}
#apDiv3 div p {
	font-family: "华文行楷";
}
#apDiv3 div p {
	color: #63F;
}
#apDiv3 div p {
	font-size: 18px;
}
#apDiv2 {
	position: absolute;
	width: 227px;
	height: 115px;
	z-index: 2;
	left: 1060px;
	top: 174px;
}
#apDiv2 p {
	font-size: 18px;
}
#apDiv2 p {
	font-family: "华文行楷";
}
#apDiv2 p {
	color: #63F;
}
</style>
</head>

<body background="images/23.jpg">
<p>
  <?php
include("conn.php");			//包含conn.php文件
$select=Mysql_query("select * from tb_user where name='".$_POST['name']."' and pwd='".$_POST['pwd']."'",$conn);
if(isset($_POST['Submit2']) and $_POST['name']!=null and $_POST['pwd']!=null){
	if(Mysql_num_rows($select)==1){
		echo "<script> alert('登录成功!'); window.location.href='index.php'</script>";
	}else{
		echo  "<script> alert('登录失败!'); window.location.href='index.php'</script>";
	}
}
?>
</p><div id="apDiv1">
<form id="form1" name="form1" method="post" action="">
  <p>登录成功
</p>
  <p>恭喜您！已成功登录</p>
  <p>请点击<a href="index.php">这里</a>返回首页 </p>
</form>
</div>
 <div id="apDiv3">
   <div>
     <p>春思</p>
     <p>唐代：李白</p>
     <p>燕草如碧丝，秦桑低绿枝。<br />
       当君怀归日，是妾断肠时。 <br />
       春风不相识，何事入罗帏。 </div>
   </div>
 </div>
<div id="apDiv2">
  <p>水调歌头·明月几时有</p>
  <p>宋代:苏轼</p>
  <p>丙辰中秋，欢饮达旦，大醉，作此篇，兼怀子由。</p>
  <p>明月几时有？把酒问青天。不知天上宫阙，今夕是何年。我欲乘风归去，又恐琼楼玉宇，高处不胜寒。起舞弄清影，何似在人间？(何似 一作：何时；又恐 一作：惟 /   唯恐)<br />
    转朱阁，低绮户，照无眠。不应有恨，何事长向别时圆？人有悲欢离合，月有阴晴圆缺，此事古难全。但愿人长久，千里共婵娟。(长向   一作：偏向)</p>
</div>
</body>
</html>